package com.ysstech.gateway.config;

import com.ysstech.gateway.filter.TokenFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 网关过滤器
 */
@Configuration
public class GatewayConfigure {
    /**
     * 自定义过滤器
     */
    @Bean
    public TokenFilter preRequestTokenFilter() {
        return new TokenFilter();
    }
}
